<template>
  <div class="home">
    <div class="home_box">
      <div class="home_left">
        <div class="left_top_box">
          <div class="top_left">
            <carousel-chart />
          </div>
          <div class="top_right">
            <notice-or-note/>
          </div>
        </div>
        <div class="left_box" >
          <EnterpriseStatistics></EnterpriseStatistics>
        </div>
        <!-- 我的项目 -->
        <div  class="left_box" style="display: flex;">
          <EnterpriseUseFrequency style="width:50%"></EnterpriseUseFrequency>
          <EnterpriseUseNumber style="width: 50%;"></EnterpriseUseNumber>
        </div>
        <div class="left_box">
          <home-my-document ref="homeMyDocument"></home-my-document>
        </div>
      </div>
      <div class="home_right">
        <div class="right_box">
          <PlatePersonal />
        </div>
        <!-- <div class="right_box">
          <WorkingToday />
        </div> -->
        <div class="right_box">
          <common-tools></common-tools>
        </div>
        <el-affix  :offset="61">

        <div class="right_box help_box" >
          <help-center></help-center>
        </div>
        <div class="right_img">
          <img src="../assets/images/home/bg1.png" alt="" />
        </div>
      </el-affix>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import carouselChart from "./components/homeIndex/carousel-chart.vue";
import noticeOrNote from "./components/homeIndex/notice-or-note.vue";
import HomeMyDocument from "@/views/components/homeIndex/home-my-document.vue";
import PlatePersonal from '@/views/components/homeIndex/plate-personal.vue';
import CommonTools from "@/views/components/homeIndex/common-tools.vue";
import HelpCenter from "@/views/components/homeIndex/help-center.vue";
import EnterpriseUseNumber from '@/views/components/homeIndex/enterprise-use-number.vue'
import EnterpriseStatistics from '@/views/components/homeIndex/enterprise-statistics.vue';
import EnterpriseUseFrequency  from '@/views/components/homeIndex/enterprise-use-frequency.vue'

</script>
<style scoped lang="scss">
.home {
  width: 100%;
  height: calc(100vh - 50px);
  background-color: #f5f5f5;
  padding: 10px 16px 20px;
  overflow: auto;
}
.bgwiter {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #eee;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1);
}
.home_box {
  display: flex;
  .home_left {
    width: 100%;
    min-width: 700px;
    margin-bottom: 10px;
  }
  .home_right {
  }
  .left_box {
    min-width: 700px;
    margin-bottom: 15px;
    @extend .bgwiter;
  }
  .right_box {
    width: 300px;
    min-width: 300px;
    margin-left: 17px;
    margin-bottom: 15px;
    @extend .bgwiter;
    padding: 16px;
  }
  .help_box {
    background-image: linear-gradient(to bottom, #ffffff, #e1edff);
  }
  .right_img {
    width: 300px;
    min-width: 300px;
    margin-left: 17px;
    margin-bottom: 15px;
    overflow: hidden;

    img {
      width: 300px;
    }
  }
  .left_top_box {
    min-width: 700px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    height: 160px;
    .top_left {
      width: 40%;
      min-width: 345px;
      margin-right: 10px;
    //   border: 1px solid #eee;
    //  border-radius: 18px;
    //   background-color: white;
    //   box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1);
    }
    .top_right {
      width: 60%;
      min-width: 345px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      
    }
  }
}
</style>
